import { createRouter, createWebHashHistory } from 'vue-router'
import { usePermission } from './permission'
import { staticRoutes } from './modules/staticRoutes'

const router = createRouter({
	history: createWebHashHistory(import.meta.env.BASE_URL),
	routes: [...staticRoutes]
})
usePermission(router)
export default router
